package com.gxuwz.medical.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.gxuwz.medical.domain.chronicdis.Chronicdis;

/**
 * 慢性病信息查询DAO类
 * 
 * @author 演示
 * 
 */
public class ChronicdisDao extends GenericDao<Chronicdis> {

	@Override
	protected Chronicdis handle(ResultSet rs) throws SQLException {

		Chronicdis entity = new Chronicdis();

		entity.setIllcode(rs.getString("illcode"));// 疾病编码
		entity.setIllname(rs.getString("illname"));// 疾病名称
		entity.setPycode(rs.getString("pycode"));// 拼音码
		entity.setWbcode(rs.getString("wbcode"));// 五笔码
		entity.setRate(rs.getDouble("rate"));
		return entity;
	}

}
